package com.hms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hms.dao.IBaseDao;
import com.hms.dao.ICustomerContactDao;
import com.hms.entity.TdCustomerContact;
import com.hms.service.ICustomerContactService;

/**
 * 标题、简要说明. <br>
 * 类详细说明.
 * <p>
 * Copyright: Copyright (c) 2013-4-18 下午3:37:29
 * <p>
 * <p>
 * 
 * @author wangpinzhuang
 * @version 1.0.0
 */

@Component
public class CustomerContactService extends BaseService<TdCustomerContact, String> implements ICustomerContactService {

	@Resource
	private ICustomerContactDao customerContactDao;

	@Override
	public IBaseDao<TdCustomerContact, String> getDao() {
		return customerContactDao;
	}

	/**
	 * 根据客户ID 获取客户联系人列表
	 * 
	 * @param customerId
	 *            客户ID
	 * @return 客户联系人列表
	 */
	@Override
	public List<TdCustomerContact> getContactByCustomerId(String customerId) {
		return customerContactDao.getContactByCustomerId(customerId);
	}
}
